        
        
require('../css/advertier.less');

document.ready(function(){
    let count_down=document.querySelector(".count_down");
    let countnum=document.querySelector("#countnum");
    let num=5;
    let timer=setInterval(function(){
       num--;
      
       if(num==0){
           clearInterval(timer)
           location.href="./register.html";
           return;
       }
       countnum.textContent=num;
    },1000)
    count_down.addEventListener("click",function(){
          window.clearInterval(timer);
          location.href="./register.html"
    })
    
});
         
